
public class card {
	//variables
	private suit suit;
	private int value;
	
	//constructor
	public card(suit s, int value){
		this.suit=s;
		
		if(value>10){
			this.value=10;
		}
		else{
			this.value=value;
		}
		
		
	}
	
	//method
	
	/*
	 * 
	 * to string method for card
	 */
	
	public String toString(){
		
		return suit.toString()+value;
	}

	public suit getSuit() {
		return suit;
	}

	public int getValue() {
		return value;
	}
	
}
